﻿/*
///    This file is part of BannerLib4Net.
///
///    BannerLib4Net is free software: you can redistribute it and/or modify
///    it under the terms of the GNU General Public License as published by
///    the Free Software Foundation, either version 3 of the License, or
///    (at your option) any later version.

///    BannerLib4Net is distributed in the hope that it will be useful,
///    but WITHOUT ANY WARRANTY; without even the implied warranty of
///    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
///    GNU General Public License for more details.
///
///    You should have received a copy of the GNU General Public License
///    along with BannerLib4Net.  If not, see <http://www.gnu.org/licenses/>.
*/


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using BannerLib4Net.Data.Models;

namespace BannerLib4Net.Data.Dao
{
    public interface IDao
    {
        IDbConnection Connection { get;}

        IList<LookupModel> RetrieveLookupModelsFromView(string viewName);

        IDbCommand CreateProcedureCommand(String procedureName, int timeout);

        IDataReader ExecuteView(String viewName);

        IDataReader ExecuteCommand(IDbCommand cmd);

        void ExecuteNonQuery(IDbCommand cmd);

        object ExecuteScalar(String functionName, int timeout);

    }
}
